﻿using System.Collections.Generic;
using MongoDB.Bson;
using MongoDB.Bson.Serialization.Attributes;

namespace Elasticsearch.Synchronize.Repository.MongoDbDTO
{
    [BsonIgnoreExtraElements(true)]
    public class SynchronizeItemDTO : BaseDTO
    {
        public string ItemId { get; set; }

        public string RuleId { get; set; }

        public string MongoSeverUrl { get; set; }

        public string MongoDatabase { get; set; }

        public string MongoCollection { get; set; }

        public string JsonFilter { get; set; }

        public string ElasticsearchServerUrl { get; set; }

        public string ElasticsearchIndexName { get; set; }

        public string ElasticsearchTypeName { get; set; }

        public int Threshold { get; set; }

        public int State { get; set; }

        public bool Enabled { get; set; }
    }
}